package org.example.swagger3.controller;

import io.swagger.annotations.ApiParam;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 季舟
 * @Date 2025-02-05 16:05
 */
@RestController
@RequestMapping("/user")
@Tag(name = "用户管理")
public class UserController {
    @GetMapping("/getUser")
    @Operation(summary = "获取用户信息")
    public String getUser(@Parameter(name = "用户id",required = true,description = "用户id") @RequestParam(value = "id",defaultValue = "1") Integer id) {
        return "user id:"+ id;
    }
}
